package com.abner.design.patterns.strategy;

/**
 * 玩具鸭
 * @author abner
 */
public class ToyDuck extends Duck{

	public ToyDuck() {
		flyBehavior = new NoFlyBehavior();
	}
	
	@Override
	public void display() {
		System.out.println("我是玩具鸭---");
	}

	@Override
	public void quack() {
		System.out.println("我是玩具鸭我不会叫---");
	}
	
	@Override
    public void swim() {
		System.out.println("我是玩具鸭我不会游泳---");
	}
	
	
}
